<?php
$this->widget('ext.pagetitle.PageTitle', array(
	'parts'=>array(
		Yii::t('frontend','Submit Entry'),
		CHtml::encode($model->name),
		CHtml::encode(Yii::app()->name),
	),
));

$this->breadcrumbs=array(
	$model->name=>array('contest/view','id'=>$model->id),
	Yii::t('frontend','Submit Entry'),
);
?>

<div class="entry-submit">

	<h1><?php echo Yii::t('frontend','Submit Entry'); ?> <?php echo CHtml::encode($model->name); ?></h1>

	<p><?php echo Yii::t('frontend','Please note that your entry will be published as soon as we have reviewed it.'); ?></p>

	<fieldset>

	<?php $form = $this->beginWidget('BootstrapActiveForm', array(
		'id'=>'entry-submit-form',
		'enableAjaxValidation'=>true,
		'htmlOptions'=>array('enctype'=>'multipart/form-data'),
	)); ?>

		<?php echo $form->hiddenField($formModel,'contestId',array('value'=>$model->id)); ?>

		<div class="clearfix">
			<?php echo $form->labelEx($formModel,'name'); ?>
			<div class="input">
				<?php echo $form->textField($formModel,'name',array('class'=>'name','size'=>60,'maxlength'=>255)); ?>
				<?php echo $form->error($formModel,'name'); ?>
			</div>
		</div>

		<div class="clearfix">
			<?php echo $form->labelEx($formModel,'email'); ?>
			<div class="input">
				<?php echo $form->textField($formModel,'email',array('class'=>'name','size'=>60,'maxlength'=>255)); ?>
				<?php echo $form->error($formModel,'email'); ?>
			</div>
		</div>

		<div class="clearfix">
			<?php echo $form->labelEx($formModel,'upload'); ?>
			<div class="input">
				<?php echo $form->fileField($formModel,'upload'); ?>
				<?php echo $form->error($formModel,'upload'); ?>
			</div>
		</div>

		<div class="actions">
			<?php echo CHtml::submitButton(Yii::t('frontend', 'SUBMIT'),array('class'=>'btn primary')); ?>
			<?php echo CHtml::link(Yii::t('frontend','CANCEL'),array('contest/view','id'=>$model->id),array('class'=>'btn')); ?>
		</div>

	<?php $this->endWidget(); ?>

	</fieldset>

</div>